import { requestV1 } from '../utils/request';
import { overviewApi, trendApi, structureOverviewApi } from '../api';
import { ResponseState, ParamsState } from './services';

// 1. 数据总览
export const overView = (params?: ParamsState): Promise<ResponseState> => {
  return requestV1.get(overviewApi, { params });
};

// 2. 数据接入趋势
export const trend = (params?: ParamsState): Promise<ResponseState> => {
  return requestV1.get(trendApi, { params });
};

// 3. 结构化统计
export const structureOverView = (
  params?: ParamsState,
): Promise<ResponseState> => {
  return requestV1.get(structureOverviewApi, { params });
};

export default '';
